package com.zhuoyue.biz.core.api.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zhuoyue.biz.core.api.domain.base.BaseDoClass;
import java.io.Serializable;
import java.time.LocalDateTime;
import com.zhuoyue.biz.core.api.dto.req.SolVoiceSetVirtualDeviceReqDTO;import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;import org.springframework.beans.BeanUtils;

@Data
@EqualsAndHashCode(callSuper = true)
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "`set_sol_voice_virtual_device`")
public class SetSolVoiceVirtualDevice extends BaseDoClass implements Serializable {
    /**
     * 语音设备ID
     */
    @TableField(value = "`voice_id`")
    private String voiceId;

    /**
     * 网关ID
     */
    @TableField(value = "`gateway_id`")
    private String gatewayId;

    /**
     * 结束设备ID
     */
    @TableField(value = "`end_device_id`")
    private String endDeviceId;

    /**
     * 虚拟设备类型
     */
    @TableField(value = "`virtual_type`")
    private String virtualType;

    /**
     * 空调地址
     */
    @TableField(value = "`address`")
    private String address;

    private static final long serialVersionUID = 1L;
    /**
     *
     */
    @TableField(value = "`virtual_name`", exist = false)
    private String virtualName;

    public com.zhuoyue.biz.core.api.domain.SetSolVoiceVirtualDevice dtoToDo(SolVoiceSetVirtualDeviceReqDTO solVoiceSetVirtualDeviceReq) {
        BeanUtils.copyProperties(solVoiceSetVirtualDeviceReq, this);
        return this;
    }
}